<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <title>插件</title>
  <!--导入默认样式-->

  <!--导入默认插件-->
  <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue@2.5.16"></script>


</head>


<body>
  <div id="root">
    <plugins-form></plugins-form>
    <plugin-demo></plugin-demo>
    <!-- <component :is="plugin" v-for="(plugin. index) in plugins" :key=index></component> -->

  </div>
</body>

</html>

</script>
<script type="text/javascript" src="./dist/plugins.js"></script>


<script>

  new Vue({
    el: "#root",
    data: function () {
      return {
          plugins:[]
      }
    },
    async created() {
        //测试1
        // let url = './dist/plugins.js'
        // this.plugins.push(()=>import(url))
        // console.log(this.plugins)
        //测试2 ajax获取url加载

    },
    mounted() {

    },
    methods: {

    }
  })

</script>
